var ChangeTaskView = function(c, b) {
	var a = new Ext.FormPanel( {
		layout : "form",
		bodyStyle : "padding:4px 4px 4px 4px",
		url : __ctxPath + "/flow/changeTask.do",
		border : false,
		items : [ {
			xtype : "hidden",
			name : "taskId",
			value : c
		}, {
			xtype : "panel",
			height : 32,
			border : false,
			layout : "column",
			defaults : {
				margins : "0 6 0 0"
			},
			items : [ {
				xtype : "label",
				text : "代办人",
				width : 105
			}, {
				name : "fullname",
				id : "fullname",
				xtype : "textfield",
				allowBlank : false,
				width : 240
			}, {
				xtype : "hidden",
				name : "userId",
				id : "userId"
			}, {
				xtype : "button",
				text : "选择",
				iconCls : "btn-select",
				width : 80,
				handler : function() {
					UserSelector.getView(function(g, h) {
						var e = Ext.getCmp("fullname");
						var f = Ext.getCmp("userId");
						e.setValue(h);
						f.setValue(g);
					}, true).show();
				}
			} ]
		}, {
			xtype : "textarea",
			name : "msg",
			anchor : "98%,98%",
			fieldLabel : "代办信息"
		} ]
	});
	var d = new Ext.Window(
			{
				title : "任务代办--" + b,
				height : 180,
				iconCls : "btn-changeTask",
				buttonAlign : "center",
				width : 500,
				modal : true,
				layout : "fit",
				items : [ a ],
				buttons : [
						{
							text : "转交代办人",
							iconCls : "btn-save",
							handler : function() {
								if (a.getForm().isValid()) {
									a
											.getForm()
											.submit(
													{
														success : function(f, g) {
														Ext.MessageBox.alert("操作信息提示","任务已经成功转交代办人来处理！");
															var h = Ext.getCmp("MyTaskView");
															var e = Ext.getCmp("TaskPanelView");
															if (e != null) {
																e.getUpdater().update(__ctxPath+ "/flow/displayTask.do");
															}
															if (h != null) {
																h.getStore().reload();
															}
															d.close();
														}
													});
								}
							}
						}, {
							text : "关闭",
							iconCls : "btn-close",
							handler : function() {
								d.close();
							}
						} ]
			});
	d.show();
};